<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<form:form method="post" commandName="task">
		<p>Create a new task.</p>
	<p>
		<label>Description:
			<form:input path="description"/><form:errors path="description" />
		</label> 
	</p>
 	<p>
		<label>Due date:
			<form:input path="dueDate" />
		</label>
	</p>
	<p>
		<label>Assigned to:
			<form:select path="assignedTo" itemLabel="surname" itemValue="id" items="${users}" /><form:errors path="assignedTo" />
		</label>
	</p>
	<p>
		<label>Notes:
			<form:textarea path="notes" />
		</label>
	</p>
	<p>
		<input type="submit" name="Submit" value="Sign In" />
	</p>
</form:form>
